package com.njtoyo.taxi.admin.rest.wrapper.business.driver;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;

@Data
@ApiModel(value = "司机查询Dto")
public class RideClickFarmingQueryDto extends Page<RideClickFarmingQueryDto> {
    public RideClickFarmingQueryDto(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 2000 : size);
    }

    @ApiModelProperty(value = "成交单阈值")
    private Integer rideCountThreshold;

    @ApiModelProperty(value = "订单金额条件")
    private BigDecimal amountCondition;

    @ApiModelProperty(value = "带金额条件的成交单阈值")
    private Integer amountConditionalRideCountThreshold;

    @ApiModelProperty("开始时间，格式：yyyy-MM-dd")
    private Date startDate;

    @ApiModelProperty("结束时间，格式：yyyy-MM-dd")
    private Date endDate;
}
